package com.klaus.ohMySpace.service;

import org.hibernate.criterion.DetachedCriteria;

import java.util.List;

/**
 * Created by Mklaus on 15/8/7.
 */
public interface BaseService<T> {
    public void add(T t);

    public void delete(int id);

    public void delete(T t);

    public void update(T t);

    public T get(int id);

    public List<T> getAll();

    public List<T> get(DetachedCriteria dc);

    public List<T> get(DetachedCriteria dc, int start, int size);
}
